package com.jy.appmarket.network.engine;

import java.util.Map;

import android.content.Context;

import com.jy.appmarket.network.resultdata.SetPasswdResult;

public class SetPasswdNetEngine extends BaseNetEngine{
	private String mPhoneNum;
	private String mPassword;
	private String mVerifyCode;
	private String mType;
	
	public SetPasswdNetEngine(String phoneNum, String password, String type, String verifyCode) {
		mResultData = new SetPasswdResult();
		mHttpMethod = HTTP_POST;
		mPhoneNum = phoneNum;
		mPassword = password;
		mType = type;
		mVerifyCode = verifyCode;
	}
	
	@Override
	protected String getCommand() {
		return "set_password";
	}

	@Override
	protected void postParams(Context context, Map<String, String> params) {
		params.put("phoneNum", mPhoneNum);
		params.put("password", mPassword);
		params.put("type", mType);
		params.put("verificationCode", mVerifyCode);
	}
}
